#pragma once
#include "afxinet.h"
class HttpClient
{
public:
	HttpClient(void);
	virtual ~HttpClient(void);
	CString SendHttpGet(CString strServer, CString strObject, INTERNET_PORT wPort, CString &header);
	CString SendHttpGet(CString strServer, CString strObject, INTERNET_PORT wPort, CString &header, CString cookies);
	CString sendPost(CString strServer, CString strObject, CString headers, CString data, CString &header, CString cookie);
	CString sendPost1(CString strServer, CString strObject, CString headers, CString data, CString &header);
	CString sendPosts(CString strServer, CString strObject, CString headers, CString data, CString &header, CString cookie);
	CString sendPost2(CString strServer, CString strObject, CString headers, CString data, CString &header, CString cookie);
	CInternetSession session; 
	CHttpConnection* pHttpConnection;  
    CHttpFile *pHttpFile;  
	CString downLoad(CString &header);
};

